package com.cw.carwashclients.mapper;

import com.cw.carwashclients.domain.Customers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomersMapper {
     // 查询客户列表
     List<Customers> selectCustomersList(Customers customers);

     // 查询客户数量
     Long selectCustomersCount(Customers customers);

     // 根据ID查询客户
     Customers selectCustomersById(Long id);

     // 新增客户
     int insertCustomers(Customers customers);

     // 修改客户
     int updateCustomers(Customers customers);

     // 删除客户
     int deleteCustomersById(Long id);

     // 批量删除
     int deleteCustomersByIds(@Param( "ids") Long[] ids);
}
